<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>企业信息管理系统</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #016aa9;
	overflow: hidden;
}

.STYLE1 {
	color: #000000;
	font-size: 12px;
}
-->
</style>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/script/lib/jquery-1.3.2.min.js"></script>
<script type="text/javascript">
	function handup(){
		document.getElementById("login").submit();
	}
	$(function(){
		var dw = document.body.clientWidth;
		var dh = document.body.clientHeight;
		document.getElementById("adiv").style.display="block";
		document.getElementById("adiv").style.top=(dh )/2+40;
		document.getElementById("adiv").style.left=(dw - 200)/2+10;
	});
</script>
</head>

<body >
	<form id="login" action="login" method="post">
		<table width="100%" height="100%" border="0" cellpadding="0"
			cellspacing="0">
			<tr>
				<td><table width="962" border="0" align="center"
						cellpadding="0" cellspacing="0">
						<tr>
							<td height="235" background="images/login_03.gif">&nbsp;</td>
						</tr>
						<tr>
							<td height="53"><table width="100%" border="0"
									cellspacing="0" cellpadding="0">
									<tr>
										<td width="394" height="53" background="images/login_05.gif">&nbsp;</td>
										<td width="206" background="images/login_06.gif"><table
												width="100%" border="0" cellspacing="0" cellpadding="0">
												<tr>
													<td width="25%" height="25"><div align="right">
															<span class="STYLE1">用户名：</span>
														</div>
													</td>
													<td width="52%" height="25"><div align="center">
															<input type="text" name="username"
																style="width: 105px; height: 17px; background-color: #292929; border: solid 1px #7dbad7; font-size: 12px; color: #6cd0ff">
														</div>
													</td>
												</tr>
												<tr>
													<td height="25"><div align="right">
															<span class="STYLE1">密  码：</span>
														</div>
													</td>
													<td height="25"><div align="center">
															<input type="password" name="password"
																style="width: 105px; height: 17px; background-color: #292929; border: solid 1px #7dbad7; font-size: 12px; color: #6cd0ff">
														</div>
													</td>
													<td height="25"><div align="left">
															<a href="#" onclick="return handup();"><img
																src="images/dl.gif" width="49" height="18" border="0">
															</a>
														</div>
													</td>
												</tr>
											</table>
										</td>
										<td width="362" background="images/login_07.gif">&nbsp;</td>
									</tr>
								</table>
							</td>
						</tr>
						<tr>
							<td height="213" background="images/login_08.gif">&nbsp;</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>

		<div id="adiv" align="center"
			style="position: absolute; display: block;  width: 200px; height: 22px;">
			<table border="0" width="100%" height="100%" cellspacing="0"
				cellpadding="0" id="table1"  border-width: 1px" >
				<tr >
					<td align="center">
					<font style="color:#FF5577;font-size: 15px;font-weight: bold;">
					<c:choose>
						<c:when test="${error eq null}">
						</c:when>
						<c:otherwise>
							${error}
						</c:otherwise>
					</c:choose>
					</font>
					</td>
				</tr>
			</table>
		</div>
	</form>
</body>
</html>
